import { IConfig } from 'umi'; // ref: https://umijs.org/config/

export default {
  // base: '/BUILD_BASE_PATH/',
  // publicPath: '/BUILD_PUBLIC_URL/',
  publicPath: '/',
  base: '/',
  define: {
    'process.env': {
      PUBLIC_URL: '/BUILD_PUBLIC_URL/',
      BASE_PATH: '/BUILD_BASE_PATH/',
      API_HOST: 'BUILD_API_HOST',
      PLATFORM_VERSION: 'BUILD_PLATFORM_VERSION',
      WEBSOCKET_HOST: 'BUILD_WEBSOCKET_HOST',
      CLIENT_ID: 'BUILD_CLIENT_ID',
      ENV_NAME: 'BUILD_ENV_NAME',
      // BUILD_ENV_ID: 'BUILD_BUILD_ENV_ID',
      PACKAGE_PUBLIC_URL: 'BUILD_PACKAGE_PUBLIC_URL',
    },
  },
  theme: {
    // 如果图片 hzero-ui icon 无法访问外网字体文件， 需要注释掉下面的注释
    // 'icon-url': '/BUILD_PUBLIC_URL/assets/hzero-ui/font_148784_v4ggb6wrjmkotj4i',
  },
} as IConfig;
